﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XpathTool.Model
{
    public class XpathObj
    {
        public string id { get; set; }
        /// <summary>
        /// 判断该节点是否含有属性
        /// </summary>
        public bool HasAttributes { get; set; }
        /// <summary>
        /// 判断该节点是否含有子节点
        /// </summary>
        public bool HasChildNodes { get; set; }
        /// <summary>
        /// 判断该节点的关闭标签是否含有属性(</xxx class="xxx">)
        /// </summary>
        public bool HasClosingAttributes { get; set; }
        /// <summary>
        /// 获取该节点的Html代码
        /// </summary>
        public string InnerHtml { get; set; }
        /// <summary>
        /// 获取该节点的内容
        /// </summary>
        public string InnerText { get; set; }
        public string OuterHtml { get; set; }

        /// <summary>
        /// 获取该节点的开始标签或开始代码位于整个HTML源代码的第几行(行号)
        /// </summary>
        public int Line { get; set; }
        /// <summary>
        /// 获取该节点位于第几列
        /// </summary>
        public int LinePosition { get; set; }

        /// <summary>
        /// Html元素名
        /// </summary>
        public string Name { get; set; }


        public string XPath { get; set; }

    }
}
